<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/7/7
 * Time: 5:03 PM
 */
namespace app\common\services\plugin;

use Illuminate\Console\Scheduling\Schedule;

class PluginApplication
{
    public function init()
    {
        $this->register();
        $this->loadConfig();
        $this->boot();
    }

    public function register()
    {

    }

    public function boot()
    {

    }
    //定时任务
    public function schedule(Schedule $schedule){

    }
    protected function setConfig()
    {

    }

    protected function setMenuConfig()
    {

    }

    public function getWidgetItems()
    {
        return [];
    }

    public function loadMenuConfig()
    {
        return $this->setMenuConfig();
    }

    public function getIncomePageItems()
    {
        return [];
    }

    public function getIncomeItems()
    {
        return [];
    }

    public function getTemplateItems()
    {
        return [];
    }

    public function getNoticeTemplateItems()
    {
        return [];
    }

    public function getShopConfigItems()
    {
        return [];
    }

    public function getPluginConfigItems()
    {
        return [];
    }

    protected function loadConfig()
    {
        $this->setConfig();
    }
}